//
//  NEDRequest.h
//  MoreCoin
//
//  Created by 林宁宁 on 2019/10/17.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import <YTKNetwork/YTKNetwork.h>
#import "NEDRequestConfig.h"

NS_ASSUME_NONNULL_BEGIN

@interface NEDRequest<__covariant ResponseClass> : YTKRequest

@property (retain, nonatomic, readonly) NEDRequestConfig<ResponseClass> * config;

+ (NEDRequest<ResponseClass> *)instanceConfig:(void(^)(NEDRequest * request, NEDRequestConfig * config))configBlock;

- (void)execute;
- (void)executeWithSuccess:(void(^_Nullable)(NSString * _Nullable message, ResponseClass result))success;
- (void)executeWithSuccess:(void(^_Nullable)(NSString * _Nullable message, ResponseClass result))success
                   failure:(void(^_Nullable)(NSString * _Nullable failureMsg, NSInteger errorCode, NSError * error))failure;

@end


NS_ASSUME_NONNULL_END
